package day06;

public class MethodDemo {
    public static void main(String[] args) {
        /*say();
        System.out.println("继续执行");
        sayHello("wqq",68);
        sayHello("wq",24);
        getNum();
        int[] a =TaskArray(5,100);
        int[] b=TaskArray(8,1000);
        System.out.println("数组的长度为"+a.length);
        System.out.println("第一个元素的值是"+a[0]);
        for (int i=0;i<a.length;i++){
            System.out.println(a[i]);
        }
        for (int i=0;i<b.length;i++){
            System.out.println(b[i]);
        }
    }

public static void say(){
    int[] arr = new int[10];
    for (int i = 0;i<arr.length;i++){
        arr[i]=(int)(Math.random()*100);
        System.out.println(arr[i]);
    }
}
public  static void sayHello(String name,int age){
        if (age>60){
            return;
        }
    System.out.println("我叫"+name+"，今年"+age+"岁了");
}


public static int[] TaskArray(int len,int num){
        int[] arr = new int[len];
        for (int i = 0;i<arr.length;i++){
            arr[i]=(int)(Math.random()*num);
        }
        return arr;
    }
public static double getNum(){
        return 8.88;
}

         */
        aMethod();
        System.out.println(444);
    }
    public static void aMethod(){
        System.out.println(111);
        bMethod();
        System.out.println(222);
    }
    public static void bMethod(){
        System.out.println(333);
    }
}

